package org.example.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private int id;
    private String username;
    private String password;
    private String birthday;
    //因为一个用户可以有许多订单所以这里要用一个集合装用户对应的orders
    private List<Order> orders;

}